﻿using AutoMapper;
using BCDto.TMS.MarketingCoupon.MarketingCoupon;
using BCDto.TMS.MarketingCoupon.MarketingCouponAddress;
using BCDto.TMS.MarketingCoupon.MarketingCouponReceive;
using BCDto.TMS.MarketingCoupon.MarketingCouponStatistics;
using BCDto.TMS.MarketingCoupon.MarketingCouponType;
using BCDto.TMS.MarketingCoupon.MarketingCouponUsing;
using BCEntity.TMS.MarketingCoupon.MarketingCoupon;
using BCEntity.TMS.MarketingCoupon.MarketingCouponAddress;
using BCEntity.TMS.MarketingCoupon.MarketingCouponReceive;
using BCEntity.TMS.MarketingCoupon.MarketingCouponStatistics;
using BCEntity.TMS.MarketingCoupon.MarketingCouponType;
using BCEntity.TMS.MarketingCoupon.MarketingCouponUsing;

namespace BCService.MapperProfiles.TMS.MarketingCoupon
{
    public class MarketingCouponProfile : Profile
    {
        public MarketingCouponProfile()
        {
            CreateMap<MarketingCouponTypeEntity, MarketingCouponTypeDto>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<MarketingCouponTypeDto, MarketingCouponTypeEntity>().IgnoreAllPropertiesWithAnInaccessibleSetter();

            CreateMap<MarketingCouponEntity, MarketingCouponDto>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<MarketingCouponDto, MarketingCouponEntity>().IgnoreAllPropertiesWithAnInaccessibleSetter();

            CreateMap<MarketingCouponReceiveEntity, MarketingCouponReceiveDto>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<MarketingCouponReceiveDto, MarketingCouponReceiveEntity>().IgnoreAllPropertiesWithAnInaccessibleSetter();

            CreateMap<MarketingCouponUsingEntity, MarketingCouponUsingDto>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<MarketingCouponUsingDto, MarketingCouponUsingEntity>().IgnoreAllPropertiesWithAnInaccessibleSetter();

            CreateMap<MarketingCouponAddressEntity, MarketingCouponAddressDto>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<MarketingCouponAddressDto, MarketingCouponAddressEntity>().IgnoreAllPropertiesWithAnInaccessibleSetter();

            CreateMap<MarketingCouponAddressViewEntity, MarketingCouponAddressViewDto>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<MarketingCouponAddressViewDto, MarketingCouponAddressViewEntity>().IgnoreAllPropertiesWithAnInaccessibleSetter();

            CreateMap<MarketingCouponTypeEntity, MarketingCouponTypeViewDto>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<MarketingCouponTypeViewDto, MarketingCouponTypeEntity>().IgnoreAllPropertiesWithAnInaccessibleSetter();

            CreateMap<MarketingCouponCountDto, MarketingCouponCountEntity>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<MarketingCouponCountEntity, MarketingCouponCountDto>().IgnoreAllPropertiesWithAnInaccessibleSetter();

            CreateMap<MarketingCouponStatisticsDto, MarketingCouponStatisticsEntity>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<MarketingCouponStatisticsEntity, MarketingCouponStatisticsDto>().IgnoreAllPropertiesWithAnInaccessibleSetter();

            CreateMap<MarketingCouponStatisticsDetailDto, MarketingCouponStatisticsDetailEntity>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<MarketingCouponStatisticsDetailEntity, MarketingCouponStatisticsDetailDto>().IgnoreAllPropertiesWithAnInaccessibleSetter();

        }
    }
}
